#include<stdio.h>
int main(){
    int user_type;
    double price;
    double pay;
    if(user_type==1){
        if(price>100){
            pay=0.95*price;
        }
        else{
            pay=price;
        }
    }
    else if(user_type==2){
        if(price>200){
            pay=price*0.9;
        }
        else{
            pay=price*0.97;
        }
    }
    else{
        printf("该用户类型无效\n");
    }
    printf("最终支付金额为: %.2lf\n",pay);
    return 0;
}